//
//  HistoryCollectionCell.m
//  CarHome
//
//  Created by 蒋寒霄 on 14-9-26.
//  Copyright (c) 2014年 WJN_work@163.com. All rights reserved.
//

#import "HistoryCollectionCell.h"

@implementation HistoryCollectionCell

- (void)dealloc
{
    [super dealloc];
}

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self createHistoryLabel];
    }
    return self;
}

- (void)createHistoryLabel
{
    _historytext = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    _historytext.font = [UIFont systemFontOfSize:15];
    _historytext.textAlignment = NSTextAlignmentCenter;
    _historytext.textColor = [UIColor whiteColor];
    _historytext.backgroundColor = [UIColor colorWithWhite:0.1 alpha:0.85];
    [self.contentView addSubview: _historytext];
    [_historytext release];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
